﻿using PhuLeBooze.UICode;
using PhuLeBussinessObject.News;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PhuLeBooze
{
    public partial class newsdetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string newsID = "0";
            if (Page.RouteData.Values["id"] != null)
                newsID = Page.RouteData.Values["id"].ToString();
            if (Request.QueryString["id"] != null)
                newsID = Request.QueryString["id"].ToString();
            CNewUI UI = new CNewUI();
            CNews Item= UI.GetNewDetail(newsID);
            if(Item!=null){
                ltrDetail.Text = Item.Content;
                ltrTitle.Text = Item.Title;
            }
        }
    }
}